package day0318.enum_;

import day0318.enum_.Color;

/**
 * @Author Stringzhua
 * @Date 2024/3/18 16:13
 * description:又忘记break穿透了
 */
public class Demo05 {
    public static void main(String[] args) {
        Color c = Color.YELLOW;
        switch (c) {
            case GREEN:
                System.out.println("是绿色");
                break;
            case BLUE:
                System.out.println("是蓝色");
                break;
            case RED:
                System.out.println("是红色");
                break;
            default:
                System.out.println("不是三原色");
        }
    }
}
